#ifndef CLOG_H
#define CLOG_H

#include <QObject>

#include "CDataBase.h"

class CLog : public QObject
{
    Q_OBJECT
    private:
        CDataBase *c_database;

        CLog();
        ~CLog();
        static CLog* singleton;

    public:
        static CLog* getInstance();

    public slots:
        void add_chat(QString username, QString content);
        void add_connection(QString _username, QString _password, int _succeed);
};

#endif // CLOG_H
